
package HibernateLayer;

import POJOs.SSessionAllocation;
import POJOs.client;
import org.hibernate.Session;

/**
 *
 * @author fabiofurlan
 */
public class VClientServices extends VCRUDBasicServices<client> {

    @Override
    protected Class<client> getTypeClass() {
        return client.class;
        
    }

    public VClientServices(){
    }

    public VClientServices(Session sBean){
        this.sessionBean=sBean;
    }

    public VClientServices(SSessionAllocation sAlloc){
        this.sessionAllocation=sAlloc;
        //In this code line we add this object to observable list of SSessionAllocation instance
        this.sessionAllocation.addObserver(this);
        this.sessionBean=sAlloc.session;
    }

}
